from tkinter import *

root=Tk()

text=Text(root,width=30,height=2)
text.pack()

text.insert(INSERT,"i love you")
text.mark_set("here","1.2")
text.insert("here","插入")
text.insert("here","这里 ")

mainloop()


